const router = require('express').Router();
const rightsControllers = require("../controllers/rightsControllers");
/* GET */
router.get(
  '/',
  async function (req, res, next) {
    let { role_id } = req.auth;
    let data = await rightsControllers.selectRights(role_id);
    res.sendResult(data,200,"请求成功");
  });


module.exports = router;
